package com.ld.wms.business.log.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ld.wms.business.log.mapper.LockerEnvironmentLogMapper;
import com.ld.wms.business.log.model.LockerEnvironmentLogModel;
import com.ld.wms.business.log.service.LockerEnvironmentLogService;
import com.ld.wms.business.log.vo.resp.LockerEnvironmentLogRespVo;
import com.ld.wms.common.vo.GeneratePageListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 柜体环境日志 服务实现类
 * </p>
 *
 * @author wangfeng
 * @since 2025-05-06
 */
@Service
public class LockerEnvironmentLogServiceImpl extends ServiceImpl<LockerEnvironmentLogMapper, LockerEnvironmentLogModel> implements LockerEnvironmentLogService {

    @Autowired
    private LockerEnvironmentLogMapper lockerEnvironmentLogMapper;

    @Override
    public GeneratePageListVo<LockerEnvironmentLogRespVo> getPageList(Integer current, Integer size) {
        IPage<LockerEnvironmentLogRespVo> iPage = new Page<>(current, size);
        IPage<LockerEnvironmentLogRespVo> lockerEnvironmentLogRespVoIPage = lockerEnvironmentLogMapper.selectPageList(iPage);
        return new GeneratePageListVo<>(lockerEnvironmentLogRespVoIPage);
    }
}
